<template>
  <div class="container">
    <div>
      <nuxt-link to="/users">用户详情页</nuxt-link>
      <el-button @click="$router.push('./users')">用户列表</el-button>
      <el-button @click="$router.push({name:'users-detail',query:{id:1}})">用户详情</el-button>
      <!-- 设置必填参数 -->
      <el-button @click="$router.push({name:'users-id',params:{id:1}})">用户详情</el-button>
    </div>
  </div>
</template>

<script>
import Logo from "~/components/Logo.vue";

export default {
  components: {
    Logo
  }
};
</script>

<style>
.container {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.title {
  font-family: "Quicksand", "Source Sans Pro", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: block;
  font-weight: 300;
  font-size: 100px;
  color: #35495e;
  letter-spacing: 1px;
}

.subtitle {
  font-weight: 300;
  font-size: 42px;
  color: #526488;
  word-spacing: 5px;
  padding-bottom: 15px;
}

.links {
  padding-top: 15px;
}
</style>
